import requset from "@/utils/request";

/**
 * 获取任务列表
 */
export function getTaskList(params) {
    return requset({
        url: "/api/adviser/getPageByConditions",
        method: "get",
        params,
    });
}

/**
 * 添加任务
 */
export function addTask(data) {
    return requset({
        url: "/api/adviser/submit",
        method: "post",
        data
    });
}

/**
 * 修改任务
 */
export function updateTask(data) {
    return requset({
        url: "/api/adviser/updateTask",
        method: "put",
        data
    });
}

/**
 * 删除任务
 */
export function deleteTask(id) {
    return requset({
        url: "/api/adviser/deleteTask",
        method: "delete",
        params: {
            taskId: id
        }
    })
}
